Fix whitespace highlighting of context diffs.
authorChong Yidong <cyd@gnu.org>
Wed, 25 Apr 2012 15:06:51 +0000 (23:06 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 25 Apr 2012 15:06:51 +0000 (23:06 +0800)
commitfe2253cbf98e51cdd349085c629ccad64dcca94f
tree963095c2f195474a07fbc032a3baed0f61826b5a
parentf067a214caa2745b2d41c576512d5ec78af929c5
Fix whitespace highlighting of context diffs.

* lisp/vc/diff-mode.el (diff-setup-whitespace): New function.
(diff-mode): Use it.

* lisp/vc/diff.el (diff-sentinel):
* lisp/vc/vc.el (vc-diff-finish): Call diff-setup-whitespace to assign
Whitespace mode variables based on diff style.
lisp/ChangeLog
lisp/vc/diff-mode.el
lisp/vc/diff.el
lisp/vc/vc.el